package com.appkubes.mall.restful.application.brand.goods.service.impl;

import com.appkubes.mall.core.service.impl.BaseMallBrandGoodsServiceImpl;
import com.appkubes.mall.restful.application.brand.goods.dao.BrandGoodsDao;
import com.appkubes.mall.restful.application.brand.goods.entity.vo.GoodsListVO;
import com.appkubes.mall.restful.application.brand.goods.service.BrandGoodsService;
import com.appkubes.mall.restful.application.goods.taobao.entity.dto.GoodsTaobaoListDto;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: Lin Jiaming
 * @Date: 2020/3/7 13:13
 * @Description:
 */
@Service
public class BrandGoodsServiceImpl extends BaseMallBrandGoodsServiceImpl implements BrandGoodsService {

    @Autowired
    BrandGoodsDao brandGoodsDao;

    @Override
    public List<GoodsTaobaoListDto> goodsList(GoodsListVO goodsListVO) {
        Page page = new Page(goodsListVO.getPage(),goodsListVO.getSize());
        return brandGoodsDao.goodsList(page,goodsListVO.getBrandKey(),goodsListVO.getSort());
    }
}
